all:
	@echo "Compiling a dynamically linked binary with GDC."
	@mkdir -p bin
	gdc -c main.d themexec/define.d
	@rm bin/themexec -f
	gcc *.o -o bin/themexec -lc -lgphobos
	@rm -f *.o
	@echo "you may now copy bin/themexec to a PATH directory."
	
with-dmd:
	@echo "Compiling a staticly linked binary with DMD."
	@mkdir -p bin
	@rm bin/themexec -f
	dmd -ofbin/themexec main.d themexec/define.d
	@rm -f *.o
	@echo "you may now copy bin/themexec to a PATH directory."

clean:
	rm bin/themexec -f
	rm -f *.o
